package com.huishi.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

/**
 * 数据源信息对象 data_source
 *
 */
@Data
public class DataSource {


    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;


    private String sourceType;


    private String sourceName;


    private String sourceDes;


    private String sourceUrl;

    private String ip;

    private String port;

//    @ApiModelProperty("服务名/sid/库名")
    private String schema;


    private String userName;


    private String password;

    private String status;

    private String createdBy;

    private String sourceOwner;

    private String sourceGranted;

    @Override
    public String toString() {
        return sourceName;
    }
}
